<%@ page pageEncoding='UTF-8'%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:set var="contextPath" value="#request.get('javax.servlet.forward.context_path')" scope="request" />

<div class="subheader-secondary">Month Appointments Summary</div>
<br/>
<s:iterator var="aDay" value="%{monthAppointmentMap}" status="dayStatus">
	<s:if test="%{#aDay.value.size() > 0}">
	<div class="day-info-container <s:if test="#dayStatus.odd == true">odd</s:if><s:else>even</s:else>">
		<div class="day-container place-left">
			<h1 class="day">
				<a href="${contextPath}/appointment/show?aptDate=${aDay.value[0].date}">${aDay.key}</a>
			</h1>
		</div>
		<div class="appointment-info-container place-left">
			<s:iterator var="sAppointment" value="%{#aDay.value}" status="appointmentStatus">
				<div class="appointment-container">
					${sAppointment.patient.name}
				</div>
			</s:iterator>
		</div>
		<br clear="all"/>
	</div>
	</s:if>
</s:iterator>
<br/>
<div class="subheader-secondary">Appointments Calendar View</div>
<br/>
<%-- div class="calendar" data-role="calendar" data-locale='en' data-other-days="1"></div --%>
<div class="calendar"></div>